<!-- HTML5 sekce pro diskuzi -->
      <section id="content">
        <div class="block user-profile">
          <header>
            <?php if (Auth::instance()->logged_in() && $userAuth->username === $user->username): ?>
            <div class="top-right text-gray"><strong><a class="href-gray" href="<?php echo url::base() ?>profile/edit/<?php echo $user->id ?>" title="Upravit vlastnosti tohoto profilu">Upravit</a></strong></div>
            <?php endif ?>
            <h2><?php echo $user->firstname.' '.$user->lastname ?></h2>
          </header>
          <section class="block-body">
            <?php echo Helpers_Photovoice::avatar($user->username); ?>
            <p><?php echo $user->text ?></p>
          </section>
        </div>
        <div class="block-bottom"></div>
        <?php if (count($photo_set) > 0 || (Auth::instance()->logged_in() && $userAuth->username === $user->username)): ?>
        <div class="block">
          <header>
            <?php if (Auth::instance()->logged_in() && $userAuth->username === $user->username): ?>
            <div class="top-right text-gray"><strong><a class="href-gray" href="<?php echo url::base() ?>profile/edit_sets/<?php echo $user->username ?>" title="Upravit vlastnosti tohoto profilu">Upravit</a></strong></div>
            <?php endif ?>
            <h2>Sety fotografií</h2>
          </header>
          <section class="block-body">
            <?php $i=1; foreach ($photo_set as $set): ?>
            <div class="sets-item"><?php echo $set->title ?></div>
            <?php endforeach ?>
          </section>
        </div>
        <div class="block-bottom"></div>
        <?php endif  ?>
        <section id="profile-photos">
        <?php $i=1; foreach ($photo_user as $photo): ?>
          <?php foreach ($photo->photo_source->find_all() as $item): ?>
          <?php if ($i % 3): ?>
          <div class="profile-photo">
          <?php else: ?>
          <div class="profile-photo-last">
          <?php endif  ?>
          <a href="<?php echo url::base() ?>photo/view/<?php echo $photo->id ?>" title=""><img src="<?php echo url::base() ?>files/users/<?php echo $photo->username; ?>/m_<?php echo $item->filename; ?>" alt="" /></a>
          </div>
          <?php $i++; endforeach ?>
        <?php endforeach ?>
        </section>
     </section>